package Team.junit;

import Team.domain.Employee;
import Team.service.NameListService;
import Team.service.TeamException;
import org.junit.jupiter.api.Test;

public class NameListServiceTest {
    @Test
    public void testGetAllEmployees() throws TeamException {
        NameListService nameListService=new NameListService();
        Employee[] employees=nameListService.getAllEmployees();
        for (int i = 0; i <employees.length ; i++) {
            System.out.println(employees[i]);
        }
        Employee employee=nameListService.getEmployee(1);
        System.out.println("\n"+employee);
    }
}
